Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Inliner][test] Fix incorrect REQUIRE line in inline-switch-default.ll (NFC) #95009

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

mshockwave
Copy link
Member

It should be x86-registered-target because we only need the X86 target in this case. x86_64-linux will be too strict here as it puts a prerequisite on the default target triple.

It should be `x86-registered-target` rather than `x86_64-linux`, which
puts a overly-strict prerequisite on the default target triple.
@llvmbot
Copy link
Collaborator

llvmbot commented Jun 10, 2024

@llvm/pr-subscribers-llvm-transforms

Author: Min-Yih Hsu (mshockwave)

Changes

It should be x86-registered-target because we only need the X86 target in this case. x86_64-linux will be too strict here as it puts a prerequisite on the default target triple.


Full diff: https://github.com/llvm/llvm-project/pull/95009.diff

1 Files Affected:

  • (modified) llvm/test/Transforms/Inline/inline-switch-default.ll (+1-1)
diff --git a/llvm/test/Transforms/Inline/inline-switch-default.ll b/llvm/test/Transforms/Inline/inline-switch-default.ll
index 288d414fe0e0e..1cc2f2ef10f56 100644
--- a/llvm/test/Transforms/Inline/inline-switch-default.ll
+++ b/llvm/test/Transforms/Inline/inline-switch-default.ll
@@ -1,7 +1,7 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4
 ; RUN: opt %s -S -passes=inline -inline-threshold=16 -min-jump-table-entries=4 | FileCheck %s -check-prefix=LOOKUPTABLE
 ; RUN: opt %s -S -passes=inline -inline-threshold=11 -min-jump-table-entries=5 | FileCheck %s -check-prefix=SWITCH
-; REQUIRES: x86_64-linux
+; REQUIRES: x86-registered-target
 
 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"

Copy link
Member

@DianQK DianQK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@DianQK DianQK changed the title [Inliner][test] Fix incorrect REQUIRE line in inline-switch-default.ll [Inliner][test] Fix incorrect REQUIRE line in inline-switch-default.ll (NFC) Jun 10, 2024
@mshockwave mshockwave merged commit 1fe4f2d into llvm:main Jun 10, 2024
7 of 8 checks passed
@mshockwave mshockwave deleted the patch/fix-inline-test-requires branch June 10, 2024 22:32
Lukacma pushed a commit to Lukacma/llvm-project that referenced this pull request Jun 12, 2024
…ll` (NFC) (llvm#95009)

It should be `x86-registered-target` because we only need the X86 target
in this case. `x86_64-linux` will be too strict here as it puts a
prerequisite on the default target triple.
@HerrCai0907 HerrCai0907 mentioned this pull request Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants